<template>
	<view>
		<view class="cu-form-group margin-top">
			<view class="title">学生班级</view>
			<picker data-type=""
				@change="PickerChange"
				:value="choiceidx"
				:range="picker">
				<view class="picker">
					{{ choiceidx > -1 ? picker[choiceidx] : '请选择类型'}}
				</view>
			</picker>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			picker: {
				type: Array,
				required: true
			},
			choiceidx: {
				type: Array,
				required: true
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			PickerChange(e) {
				console.log(e.detail.value)
			}
		}
	}
</script>

<style>

</style>
